<?php

header('Content-Type:image/png');
$im = imagecreatetruecolor(100, 100);
$red = imagecolorallocate($im, 255, 0, 0);
imagefill($im, 10, 10, $red);
imagepng($im);
?>